<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>


        let sum = (a,b) => console.log(a+b);

        sum(5,10);

        let sum2 = (c,d) => c+d;
        console.log(sum2(10,10))

        let person = {
            name:"zhangsan",
            age:20,
            address:"航头镇",
            hello:{
                hi1:"nihao",
                hi2:"hello",
                hi3:"你好"
            }
        }

        let say1 = function(person){
            console.log(person.hello.hi1);
        }

        say1(person);

        let say2 = function({hello}){
            console.log(hello.hi2)
        }

        say2(person);

        let say3 = ({hello}) => console.log(hello.hi3);

        say3(person);

    </script>
</head>
<body>



</body>
</html>